<%@page contentType="text/html" pageEncoding="ISO-8859-1"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
        <link href="./style/style.css" rel="stylesheet" type="text/css">
        <style type="text/css">
            .errorMessage {color : red;}
        </style>
    </head>       
        <div class="mdpErreur">
        <%
        if (request.getAttribute("message")!=null)
        {
            out.println("<span class=\"errorMessage\">"+request.getAttribute("message")+"</span>");
        }
        
        String  userN = request.getParameter("nom");
        if (userN==null) userN="";
               else userN = userN.trim();
        %>
        </div>
         <a href="#" id="seConnecter">LogIn</a>
        <form id="loginForm" action="login.exe" method="post">
            <table>
            <td>Utilisateur :<br/><input type="text" name="nom" value="<%=userN%>" id="userLogIn"/></td>
            <td>Mot de passe :<br/> <input type="password" name="mdp" id="pswdLogIn"/></td>
            <input type="hidden" name="action" value="login" />
            <td><input type="submit" value="LogIn" /></td>
            </table>
        </form>    
</html>
